<div id="main">
	<div id="main_left" class="f_left">
		<div id="bread"><?php echo $bread_crumbs; ?></div>
		<?php if(!empty($error)): ?>
		<div class="error_info2">
			<?php echo $error; ?>
		</div>
		<?php endif ?>
		<div id="form">
			<form name="form" method="post">
				<ul>
					<li>用户角色：<span class="cl_red">*</span></li>
					<li>
						<select name="rid" v="re">
							<option value="0">===请选择===</option>
							<?php foreach($role_list as $list) :?>
							<option value="<?php echo $list['rid'];?>"><?php echo $list['role_name'];?></option>
							<?php endforeach; ?>
						</select>
					</li>
					<li>用户名：<span class="cl_red">*</span></li>
					<li><input type="text" name="username" v="re" size="27" /></li>
					<li>密码：<span class="cl_red">*</span></li>
					<li><input type="text" name="password" v="re" size="27" /></li>
					<li>超级管理员：</li>
					<li><input type="radio" name="is_manage" value="1" />是　
						<input type="radio" name="is_manage" value="0" checked="checked" />否
					</li>
					<li>激活：</li>
					<li><input type="radio" name="is_activation" value="1" checked="checked" />是　
						<input type="radio" name="is_activation" value="0" />否
					</li>
					<input type="submit" value=" 添加用户 " class="martop10" />
				</ul>
			</form>
		</div>
		<script type="text/javascript">
			form    = document.forms['form'];
			element = form.elements;
			form.onsubmit = function()
			{
				for (i = 0; i <= element.length; i++) {
					if ((element[i].value == '' || element[i].value == 0) && 
						 element[i].getAttribute('v') == 're') {
						element[i].style.border = '1px solid red';
						element[i].focus();
						return false;
					}
				}	
			}
		</script>
	</div>
	<div id="sidebar" class="f_left">
		{include file=block/sidebar_index}
	</div>
</div>